home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-03-18 | 4.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Mar 17 20:06:35 1997, modified Mon Mar 17 20:06:35 1997, creator 'CWIE', type ASCII, 3367 bytes "ooftst10.cpp" , at 0xda7 970 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 31 30 2e 63 70 70 00 00 |..ooftst|10.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0d 27 00 | 00 03 ca af 53 9b 1b af |......'.|....S...|
|00000060| 53 9b 1b 00 00 0a 00 00 | 00 00 00 00 00 00 00 00 |S.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 12 6b 00 00 |........|.....k..|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 34 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |4 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 31 30 0d 0d 2f 2f 20 74 | 68 69 73 20 73 61 6d 70 |10..// t|his samp|
|000000d0| 6c 65 20 75 73 65 73 20 | 73 74 72 65 61 6d 20 6f |le uses |stream o|
|000000e0| 70 65 72 61 74 6f 72 73 | 20 74 6f 20 73 65 74 20 |perators| to set |
|000000f0| 72 65 63 6f 72 64 73 0d | 0d 2f 2f 20 53 69 6d 70 |records.|.// Simp|
|00000100| 6c 65 20 73 74 72 65 61 | 6d 20 49 2f 4f 20 69 73 |le strea|m I/O is|
|00000110| 20 75 73 65 64 20 74 6f | 20 69 6e 74 65 72 61 63 | used to| interac|
|00000120| 74 20 77 69 74 68 20 74 | 68 65 20 75 73 65 72 2e |t with t|he user.|
|00000130| 0d 23 69 6e 63 6c 75 64 | 65 20 22 6f 6f 66 69 6c |.#includ|e "oofil|
|00000140| 65 2e 68 22 0d 0d 0d 44 | 45 43 4c 41 52 45 5f 43 |e.h"...D|ECLARE_C|
|00000150| 4c 41 53 53 28 64 62 50 | 65 6f 70 6c 65 29 0d 09 |LASS(dbP|eople)..|
|00000160| 64 62 43 68 61 72 09 09 | 4c 61 73 74 4e 61 6d 65 |dbChar..|LastName|
|00000170| 2c 20 4f 74 68 65 72 4e | 61 6d 65 73 3b 0d 09 64 |, OtherN|ames;..d|
|00000180| 62 44 61 74 65 09 09 42 | 69 72 74 68 64 61 79 3b |bDate..B|irthday;|
|00000190| 0d 09 64 62 53 68 6f 72 | 74 09 09 53 68 6f 72 74 |..dbShor|t..Short|
|000001a0| 3b 0d 09 64 62 55 73 68 | 6f 72 74 09 55 73 68 6f |;..dbUsh|ort.Usho|
|000001b0| 72 74 3b 0d 09 64 62 4c | 6f 6e 67 09 09 4c 6f 6e |rt;..dbL|ong..Lon|
|000001c0| 67 3b 0d 09 64 62 55 6c | 6f 6e 67 09 09 55 6c 6f |g;..dbUl|ong..Ulo|
|000001d0| 6e 67 3b 0d 09 64 62 52 | 65 61 6c 09 09 52 65 61 |ng;..dbR|eal..Rea|
|000001e0| 6c 3b 0d 09 64 62 54 65 | 78 74 09 09 44 65 73 63 |l;..dbTe|xt..Desc|
|000001f0| 72 69 70 74 69 6f 6e 3b | 0d 0d 09 64 62 50 65 6f |ription;|...dbPeo|
|00000200| 70 6c 65 28 29 20 3a 0d | 09 09 09 09 64 62 54 61 |ple() :.|....dbTa|
|00000210| 62 6c 65 28 22 50 65 6f | 70 6c 65 22 29 2c 0d 09 |ble("Peo|ple"),..|
|00000220| 09 09 09 4c 61 73 74 4e | 61 6d 65 28 31 39 2c 20 |...LastN|ame(19, |
|00000230| 22 4c 61 73 74 20 4e 61 | 6d 65 22 29 2c 09 2f 2f |"Last Na|me"),.//|
|00000240| 20 75 73 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | use sho|rt name |
|00000250| 74 6f 20 74 65 73 74 20 | 6c 6f 6e 67 20 73 74 72 |to test |long str|
|00000260| 69 6e 67 20 69 6d 70 6f | 72 74 0d 09 09 09 09 4f |ing impo|rt.....O|
|00000270| 74 68 65 72 4e 61 6d 65 | 73 28 37 39 2c 20 22 4f |therName|s(79, "O|
|00000280| 74 68 65 72 20 4e 61 6d | 65 73 22 29 2c 0d 09 09 |ther Nam|es"),...|
|00000290| 09 09 42 69 72 74 68 64 | 61 79 28 22 42 69 72 74 |..Birthd|ay("Birt|
|000002a0| 68 64 61 79 22 29 2c 0d | 09 09 09 09 53 68 6f 72 |hday"),.|....Shor|
|000002b0| 74 28 22 54 65 73 74 20 | 53 68 6f 72 74 22 29 2c |t("Test |Short"),|
|000002c0| 0d 09 09 09 09 55 73 68 | 6f 72 74 28 22 54 65 73 |.....Ush|ort("Tes|
|000002d0| 74 20 55 53 68 6f 72 74 | 22 29 2c 0d 09 09 09 09 |t UShort|"),.....|
|000002e0| 4c 6f 6e 67 28 22 54 65 | 73 74 20 4c 6f 6e 67 22 |Long("Te|st Long"|
|000002f0| 29 2c 0d 09 09 09 09 55 | 6c 6f 6e 67 28 22 54 65 |),.....U|long("Te|
|00000300| 73 74 20 55 4c 6f 6e 67 | 22 29 2c 0d 09 09 09 09 |st ULong|"),.....|
|00000310| 52 65 61 6c 28 22 54 65 | 73 74 20 52 65 61 6c 22 |Real("Te|st Real"|
|00000320| 29 2c 0d 09 09 09 09 44 | 65 73 63 72 69 70 74 69 |),.....D|escripti|
|00000330| 6f 6e 28 22 44 65 73 63 | 72 69 70 74 69 6f 6e 22 |on("Desc|ription"|
|00000340| 29 0d 09 09 09 09 7b 7d | 3b 0d 7d 3b 0d 0d 54 45 |).....{}|;.};..TE|
|00000350| 53 54 5f 43 4f 4e 4e 45 | 43 54 20 74 68 65 44 42 |ST_CONNE|CT theDB|
|00000360| 3b 0d 64 62 50 65 6f 70 | 6c 65 09 50 65 6f 70 6c |;.dbPeop|le.Peopl|
|00000370| 65 3b 0d 0d 69 6e 74 20 | 6d 61 69 6e 28 29 0d 7b |e;..int |main().{|
|00000380| 0d 09 63 6f 75 74 20 3c | 3c 20 22 4f 4f 46 49 4c |..cout <|< "OOFIL|
|00000390| 45 20 56 61 6c 69 64 61 | 74 69 6f 6e 20 53 75 69 |E Valida|tion Sui|
|000003a0| 74 65 20 2d 20 54 65 73 | 74 20 31 30 5c 6e 22 0d |te - Tes|t 10\n".|
|000003b0| 09 09 20 3c 3c 20 22 53 | 69 6d 70 6c 65 20 74 65 |.. << "S|imple te|
|000003c0| 73 74 20 74 6f 20 64 65 | 6d 6f 6e 73 74 72 61 74 |st to de|monstrat|
|000003d0| 65 20 63 72 65 61 74 69 | 6e 67 20 72 65 63 6f 72 |e creati|ng recor|
|000003e0| 64 73 22 20 3c 3c 20 65 | 6e 64 6c 0d 09 09 20 3c |ds" << e|ndl... <|
|000003f0| 3c 20 22 75 73 69 6e 67 | 20 69 6e 70 75 74 20 73 |< "using| input s|
|00000400| 74 72 65 61 6d 73 22 20 | 3c 3c 20 65 6e 64 6c 3b |treams" |<< endl;|
|00000410| 0d 09 09 20 0d 09 23 69 | 66 64 65 66 20 54 45 53 |... ..#i|fdef TES|
|00000420| 54 49 4e 47 5f 44 42 41 | 53 45 0d 09 09 23 69 66 |TING_DBA|SE...#if|
|00000430| 64 65 66 20 5f 4d 61 63 | 69 6e 74 6f 73 68 0d 09 |def _Mac|intosh..|
|00000440| 09 09 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 6b 45 |..const |char* kE|
|00000450| 78 69 73 74 73 4e 61 6d | 65 20 3d 20 20 22 3a 6f |xistsNam|e = ":o|
|00000460| 6f 66 74 73 74 31 30 3a | 50 61 74 69 65 6e 74 73 |oftst10:|Patients|
|00000470| 2e 64 62 66 22 3b 0d 09 | 09 09 63 6f 6e 73 74 20 |.dbf";..|..const |
|00000480| 63 68 61 72 2a 20 6b 44 | 61 74 61 62 61 73 65 4e |char* kD|atabaseN|
|00000490| 61 6d 65 20 3d 20 22 3a | 6f 6f 66 74 73 74 31 30 |ame = ":|ooftst10|
|000004a0| 3a 22 3b 0d 09 09 23 65 | 6c 73 65 0d 09 09 09 63 |:";...#e|lse....c|
|000004b0| 6f 6e 73 74 20 63 68 61 | 72 2a 20 6b 45 78 69 73 |onst cha|r* kExis|
|000004c0| 74 73 4e 61 6d 65 20 3d | 20 20 20 22 50 65 6f 70 |tsName =| "Peop|
|000004d0| 6c 65 2e 64 62 66 22 0d | 09 09 09 63 6f 6e 73 74 |le.dbf".|...const|
|000004e0| 20 63 68 61 72 2a 20 6b | 44 61 74 61 62 61 73 65 | char* k|Database|
|000004f0| 4e 61 6d 65 20 3d 20 22 | 22 3b 0d 09 09 23 65 6e |Name = "|";...#en|
|00000500| 64 69 66 09 0d 0d 09 23 | 65 6c 73 65 0d 09 09 63 |dif....#|else...c|
|00000510| 6f 6e 73 74 20 63 68 61 | 72 2a 20 6b 44 61 74 61 |onst cha|r* kData|
|00000520| 62 61 73 65 4e 61 6d 65 | 20 3d 20 22 6f 6f 66 74 |baseName| = "ooft|
|00000530| 73 74 31 30 2e 64 62 22 | 3b 0d 09 09 63 6f 6e 73 |st10.db"|;...cons|
|00000540| 74 20 63 68 61 72 2a 20 | 6b 45 78 69 73 74 73 4e |t char* |kExistsN|
|00000550| 61 6d 65 20 3d 20 6b 44 | 61 74 61 62 61 73 65 4e |ame = kD|atabaseN|
|00000560| 61 6d 65 3b 0d 09 23 65 | 6e 64 69 66 0d 09 69 66 |ame;..#e|ndif..if|
|00000570| 20 28 64 62 43 6f 6e 6e | 65 63 74 3a 3a 66 69 6c | (dbConn|ect::fil|
|00000580| 65 45 78 69 73 74 73 28 | 6b 45 78 69 73 74 73 4e |eExists(|kExistsN|
|00000590| 61 6d 65 29 29 20 7b 0d | 09 09 74 68 65 44 42 2e |ame)) {.|..theDB.|
|000005a0| 6f 70 65 6e 43 6f 6e 6e | 65 63 74 69 6f 6e 28 6b |openConn|ection(k|
|000005b0| 44 61 74 61 62 61 73 65 | 4e 61 6d 65 29 3b 0d 09 |Database|Name);..|
|000005c0| 09 50 65 6f 70 6c 65 2e | 64 65 6c 65 74 65 41 6c |.People.|deleteAl|
|000005d0| 6c 28 29 3b 0d 09 7d 0d | 09 65 6c 73 65 20 7b 0d |l();..}.|.else {.|
|000005e0| 09 09 74 68 65 44 42 2e | 6e 65 77 43 6f 6e 6e 65 |..theDB.|newConne|
|000005f0| 63 74 69 6f 6e 28 6b 44 | 61 74 61 62 61 73 65 4e |ction(kD|atabaseN|
|00000600| 61 6d 65 29 3b 0d 09 7d | 0d 0d 09 64 62 44 61 74 |ame);..}|...dbDat|
|00000610| 65 3a 3a 73 44 65 66 61 | 75 6c 74 44 61 74 65 4f |e::sDefa|ultDateO|
|00000620| 72 64 65 72 3d 64 62 44 | 61 74 65 3a 3a 6f 72 64 |rder=dbD|ate::ord|
|00000630| 65 72 4d 44 59 3b 0d 0d | 2f 2f 20 66 61 6b 65 20 |erMDY;..|// fake |
|00000640| 73 65 74 74 69 6e 67 20 | 75 70 20 61 6e 20 69 6e |setting |up an in|
|00000650| 70 75 74 20 73 74 72 65 | 61 6d 2c 20 77 69 74 68 |put stre|am, with|
|00000660| 20 6b 6e 6f 77 6e 20 71 | 75 61 6e 74 69 74 69 65 | known q|uantitie|
|00000670| 73 2e 0d 2f 2f 20 69 6e | 20 6e 6f 72 6d 61 6c 20 |s..// in| normal |
|00000680| 6c 69 66 65 2c 20 77 65 | 27 64 20 68 61 76 65 20 |life, we|'d have |
|00000690| 61 6e 20 69 6e 70 75 74 | 20 73 74 72 65 61 6d 20 |an input| stream |
|000006a0| 73 74 72 61 69 67 68 74 | 20 66 72 6f 6d 20 61 20 |straight| from a |
|000006b0| 66 69 6c 65 0d 2f 2f 20 | 62 75 74 20 77 65 20 77 |file.// |but we w|
|000006c0| 61 6e 74 20 70 72 65 64 | 69 63 74 61 62 6c 65 20 |ant pred|ictable |
|000006d0| 69 6e 70 75 74 20 73 6f | 20 77 65 20 63 61 6e 20 |input so| we can |
|000006e0| 75 73 65 20 74 68 65 20 | 6f 75 74 70 75 74 20 66 |use the |output f|
|000006f0| 6f 72 20 72 65 67 72 65 | 73 73 69 6f 6e 20 74 65 |or regre|ssion te|
|00000700| 73 74 69 6e 67 0d 0d 09 | 50 65 6f 70 6c 65 2e 73 |sting...|People.s|
|00000710| 65 74 53 6f 72 74 4f 72 | 64 65 72 28 50 65 6f 70 |etSortOr|der(Peop|
|00000720| 6c 65 2e 4f 74 68 65 72 | 4e 61 6d 65 73 29 3b 0d |le.Other|Names);.|
|00000730| 2f 2f 09 50 65 6f 70 6c | 65 2e 73 65 74 52 65 76 |//.Peopl|e.setRev|
|00000740| 65 72 73 65 53 6f 72 74 | 4f 72 64 65 72 28 50 65 |erseSort|Order(Pe|
|00000750| 6f 70 6c 65 2e 4f 74 68 | 65 72 4e 61 6d 65 73 29 |ople.Oth|erNames)|
|00000760| 3b 20 20 73 68 6f 77 73 | 20 6b 6e 6f 77 6e 20 62 |; shows| known b|
|00000770| 75 67 20 69 6e 20 72 65 | 76 65 72 73 65 20 63 68 |ug in re|verse ch|
|00000780| 61 72 20 73 6f 72 74 73 | 0d 0d 09 74 68 65 44 42 |ar sorts|...theDB|
|00000790| 2e 74 72 75 6e 63 61 74 | 65 54 72 61 69 6c 69 6e |.truncat|eTrailin|
|000007a0| 67 53 70 61 63 65 73 28 | 29 3b 0d 09 09 0d 09 6f |gSpaces(|);.....o|
|000007b0| 73 74 72 73 74 72 65 61 | 6d 20 6f 73 73 3b 0d 0d |strstrea|m oss;..|
|000007c0| 09 6f 73 73 20 3c 3c 20 | 22 44 65 6e 74 22 20 3c |.oss << |"Dent" <|
|000007d0| 3c 20 27 5c 74 27 20 3c | 3c 20 22 41 6e 64 79 22 |< '\t' <|< "Andy"|
|000007e0| 20 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 22 4a 61 6e | << '\t'| << "Jan|
|000007f0| 20 32 32 6e 64 20 36 35 | 22 0d 09 09 3c 3c 20 27 | 22nd 65|"...<< '|
|00000800| 5c 74 27 20 3c 3c 20 2d | 38 38 20 3c 3c 20 27 5c |\t' << -|88 << '\|
|00000810| 74 27 20 3c 3c 20 32 31 | 0d 09 09 3c 3c 20 27 5c |t' << 21|...<< '\|
|00000820| 74 27 20 3c 3c 20 2d 36 | 35 30 30 30 30 30 20 3c |t' << -6|500000 <|
|00000830| 3c 20 27 5c 74 27 20 3c | 3c 20 37 32 30 30 30 30 |< '\t' <|< 720000|
|00000840| 30 20 3c 3c 20 27 5c 74 | 27 20 3c 3c 20 30 2e 35 |0 << '\t|' << 0.5|
|00000850| 0d 09 09 3c 3c 20 27 5c | 74 27 20 3c 3c 20 22 41 |...<< '\|t' << "A|
|00000860| 6e 64 79 20 69 73 20 74 | 68 65 20 62 6f 73 73 2c |ndy is t|he boss,|
|00000870| 20 61 6e 64 20 62 79 20 | 74 68 65 20 77 61 79 20 | and by |the way |
|00000880| 6e 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 69 67 75 |none of |the figu|
|00000890| 72 65 73 20 6f 72 20 64 | 61 74 65 73 20 69 6e 20 |res or d|ates in |
|000008a0| 74 68 65 73 65 20 74 65 | 73 74 20 70 72 6f 67 72 |these te|st progr|
|000008b0| 61 6d 73 20 61 72 65 20 | 72 65 61 6c 2e 22 20 0d |ams are |real." .|
|000008c0| 09 09 3c 3c 20 65 6e 64 | 6c 3b 0d 09 09 0d 09 6f |..<< end|l;.....o|
|000008d0| 73 73 20 3c 3c 20 22 44 | 65 6e 74 22 20 3c 3c 20 |ss << "D|ent" << |
|000008e0| 27 5c 74 27 20 3c 3c 20 | 22 54 72 69 73 73 61 22 |'\t' << |"Trissa"|
|000008f0| 20 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 22 34 2d 31 | << '\t'| << "4-1|
|00000900| 35 2d 31 39 37 31 22 0d | 09 09 3c 3c 20 27 5c 74 |5-1971".|..<< '\t|
|00000910| 27 20 3c 3c 20 2d 37 20 | 3c 3c 20 27 5c 74 27 20 |' << -7 |<< '\t' |
|00000920| 3c 3c 20 36 37 30 0d 09 | 09 3c 3c 20 27 5c 74 27 |<< 670..|.<< '\t'|
|00000930| 20 3c 3c 20 2d 31 39 31 | 30 30 30 30 30 20 3c 3c | << -191|00000 <<|
|00000940| 20 27 5c 74 27 20 3c 3c | 20 33 34 30 30 30 30 30 | '\t' <<| 3400000|
|00000950| 20 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 31 2e 38 31 | << '\t'| << 1.81|
|00000960| 20 0d 09 09 3c 3c 20 27 | 5c 74 27 20 3c 3c 20 22 | ...<< '|\t' << "|
|00000970| 42 65 79 6f 6e 64 20 44 | 65 73 63 72 69 70 74 69 |Beyond D|escripti|
|00000980| 6f 6e 22 20 3c 3c 20 65 | 6e 64 6c 3b 0d 09 09 0d |on" << e|ndl;....|
|00000990| 2f 2f 20 74 72 79 20 77 | 69 74 68 20 74 72 61 69 |// try w|ith trai|
|000009a0| 6c 69 6e 67 20 73 70 61 | 63 65 73 2c 20 61 6e 64 |ling spa|ces, and|
|000009b0| 20 77 69 74 68 20 66 69 | 65 6c 64 20 73 65 70 61 | with fi|eld sepa|
|000009c0| 72 61 74 6f 72 73 20 61 | 66 74 65 72 20 74 68 65 |rators a|fter the|
|000009d0| 20 6c 61 73 74 20 66 69 | 65 6c 64 0d 2f 2f 20 61 | last fi|eld.// a|
|000009e0| 6e 64 20 61 20 72 65 61 | 6c 6c 79 20 6c 6f 6e 67 |nd a rea|lly long|
|000009f0| 20 66 69 65 6c 64 20 74 | 6f 20 74 72 69 67 67 65 | field t|o trigge|
|00000a00| 72 20 74 72 75 6e 63 61 | 74 69 6f 6e 20 6f 6e 20 |r trunca|tion on |
|00000a10| 74 68 65 20 4c 61 73 74 | 4e 61 6d 65 0d 09 6f 73 |the Last|Name..os|
|00000a20| 73 20 3c 3c 20 22 44 65 | 6e 74 20 20 20 20 20 20 |s << "De|nt |
|00000a30| 20 20 20 20 20 22 20 3c | 3c 20 27 5c 74 27 20 3c | " <|< '\t' <|
|00000a40| 3c 20 22 41 6c 69 63 65 | 22 20 3c 3c 20 27 5c 74 |< "Alice|" << '\t|
|00000a50| 27 20 3c 3c 65 6e 64 6c | 3b 0d 09 6f 73 73 20 3c |' <<endl|;..oss <|
|00000a60| 3c 20 22 53 6d 69 74 68 | 58 58 58 58 58 58 58 58 |< "Smith|XXXXXXXX|
|00000a70| 58 58 58 58 58 58 58 58 | 58 58 58 58 22 20 3c 3c |XXXXXXXX|XXXX" <<|
|00000a80| 20 27 5c 74 27 20 3c 3c | 20 22 42 69 6c 6c 79 22 | '\t' <<| "Billy"|
|00000a90| 20 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 65 6e 64 6c | << '\t'| << endl|
|00000aa0| 3b 0d 0d 2f 2f 20 74 72 | 79 20 77 69 74 68 20 61 |;..// tr|y with a|
|00000ab0| 6e 20 65 78 74 72 61 20 | 66 69 65 6c 64 20 74 68 |n extra |field th|
|00000ac0| 61 74 20 77 65 20 64 6f | 6e 27 74 20 69 6d 70 6f |at we do|n't impo|
|00000ad0| 72 74 09 0d 09 6f 73 73 | 20 3c 3c 20 22 44 65 6e |rt...oss| << "Den|
|00000ae0| 74 22 20 3c 3c 20 27 5c | 74 27 20 3c 3c 20 22 54 |t" << '\|t' << "T|
|00000af0| 61 6e 69 74 68 22 20 3c | 3c 20 27 5c 74 27 20 3c |anith" <|< '\t' <|
|00000b00| 3c 20 22 4a 61 6e 20 31 | 33 20 31 39 39 30 22 0d |< "Jan 1|3 1990".|
|00000b10| 09 09 3c 3c 20 27 5c 74 | 27 20 3c 3c 20 2d 38 38 |..<< '\t|' << -88|
|00000b20| 20 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 32 31 0d 09 | << '\t'| << 21..|
|00000b30| 09 3c 3c 20 27 5c 74 27 | 20 3c 3c 20 30 20 3c 3c |.<< '\t'| << 0 <<|
|00000b40| 20 27 5c 74 27 20 3c 3c | 20 30 20 3c 3c 20 27 5c | '\t' <<| 0 << '\|
|00000b50| 74 27 20 3c 3c 20 30 2e | 35 0d 09 09 3c 3c 20 27 |t' << 0.|5...<< '|
|00000b60| 5c 74 27 20 3c 3c 20 22 | 22 20 0d 09 09 3c 3c 20 |\t' << "|" ...<< |
|00000b70| 27 5c 74 27 20 3c 3c 20 | 22 49 47 4e 4f 52 45 44 |'\t' << |"IGNORED|
|00000b80| 20 45 58 54 52 41 20 46 | 49 45 4c 44 22 20 0d 09 | EXTRA F|IELD" ..|
|00000b90| 09 3c 3c 20 65 6e 64 6c | 3b 0d 09 09 0d 09 09 0d |.<< endl|;.......|
|00000ba0| 09 0d 09 69 73 74 72 65 | 61 6d 20 69 73 28 6f 73 |...istre|am is(os|
|00000bb0| 73 2e 72 64 62 75 66 28 | 29 29 3b 20 20 2f 2f 20 |s.rdbuf(|)); // |
|00000bc0| 6e 6f 72 6d 61 6c 6c 79 | 20 73 6f 6d 65 74 68 69 |normally| somethi|
|00000bd0| 6e 67 20 6c 69 6b 65 20 | 69 66 73 74 72 65 61 6d |ng like |ifstream|
|00000be0| 20 69 73 28 22 66 69 6c | 65 6e 61 6d 65 22 29 3b | is("fil|ename");|
|00000bf0| 0d 0d 09 63 6f 75 74 20 | 3c 3c 20 22 45 6e 74 69 |...cout |<< "Enti|
|00000c00| 72 65 20 64 61 74 61 62 | 61 73 65 20 20 2d 20 73 |re datab|ase - s|
|00000c10| 68 6f 75 6c 64 20 62 65 | 20 65 6d 70 74 79 22 20 |hould be| empty" |
|00000c20| 3c 3c 20 65 6e 64 6c 20 | 3c 3c 20 74 68 65 44 42 |<< endl |<< theDB|
|00000c30| 20 3c 3c 20 65 6e 64 6c | 3b 0d 09 0d 09 2f 2f 20 | << endl|;....// |
|00000c40| 63 68 61 6e 67 65 20 74 | 68 65 20 66 6f 6c 6c 6f |change t|he follo|
|00000c50| 77 69 6e 67 20 73 65 74 | 74 69 6e 67 2c 20 6f 72 |wing set|ting, or|
|00000c60| 20 63 6f 6d 6d 65 6e 74 | 20 6f 75 74 20 74 68 69 | comment| out thi|
|00000c70| 73 20 6c 69 6e 65 0d 09 | 2f 2f 20 74 6f 20 73 65 |s line..|// to se|
|00000c80| 65 20 74 68 65 20 65 72 | 72 6f 72 20 6d 65 73 73 |e the er|ror mess|
|00000c90| 61 67 65 20 66 72 6f 6d | 20 72 65 61 64 69 6e 67 |age from| reading|
|00000ca0| 20 61 20 73 68 6f 72 74 | 20 72 65 63 6f 72 64 0d | a short| record.|
|00000cb0| 09 50 65 6f 70 6c 65 2e | 73 65 74 53 68 6f 72 74 |.People.|setShort|
|00000cc0| 49 6d 70 6f 72 74 73 28 | 74 72 75 65 29 3b 0d 09 |Imports(|true);..|
|00000cd0| 0d 09 69 73 20 3e 3e 20 | 50 65 6f 70 6c 65 3b 20 |..is >> |People; |
|00000ce0| 20 2f 2f 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 59 65 | // ****|***** Ye|
|00000cf0| 73 2c 20 74 68 69 73 20 | 69 73 20 74 68 65 20 69 |s, this |is the i|
|00000d00| 6d 70 6f 72 74 21 21 21 | 20 2a 2a 2a 2a 2a 2a 2a |mport!!!| *******|
|00000d10| 2a 0d 09 0d 09 63 6f 75 | 74 20 3c 3c 20 22 45 6e |*....cou|t << "En|
|00000d20| 74 69 72 65 20 64 61 74 | 61 62 61 73 65 20 20 2d |tire dat|abase -|
|00000d30| 20 61 66 74 65 72 20 69 | 6d 70 6f 72 74 69 6e 67 | after i|mporting|
|00000d40| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 72 65 61 6d | from th|e stream|
|00000d50| 22 20 3c 3c 20 65 6e 64 | 6c 20 3c 3c 20 74 68 65 |" << end|l << the|
|00000d60| 44 42 20 3c 3c 20 65 6e | 64 6c 3b 0d 09 0d 09 63 |DB << en|dl;....c|
|00000d70| 6f 75 74 20 3c 3c 20 22 | 64 6f 6e 65 22 20 3c 3c |out << "|done" <<|
|00000d80| 20 65 6e 64 6c 3b 0d 0d | 09 72 65 74 75 72 6e 20 | endl;..|.return |
|00000d90| 45 58 49 54 5f 53 55 43 | 43 45 53 53 3b 0d 7d 20 |EXIT_SUC|CESS;.} |
|00000da0| 20 20 20 20 20 20 0d 00 | 00 00 00 00 00 00 00 00 | ..|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 02 ec | 00 00 01 ec 00 00 00 de |........|........|
|00000e10| 00 02 64 71 00 00 02 d0 | 05 00 00 02 64 72 00 00 |..dq....|....dr..|
|00000e20| 02 d5 05 00 00 02 64 8b | 00 00 02 e5 05 00 00 02 |......d.|........|
|00000e30| 0c 6f 6f 66 74 73 74 31 | 30 2e 63 70 70 31 02 00 |.ooftst1|0.cpp1..|
|00000e40| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000e50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 b0 1b 75 f7 00 00 | 00 00 00 00 03 ca 00 02 |....u...|........|
|00000e80| 65 69 00 00 00 cd 05 00 | 00 02 65 69 00 00 00 cd |ei......|..ei....|
|00000e90| 05 00 00 02 65 69 00 00 | 00 cd 05 00 00 02 65 69 |....ei..|......ei|
|00000ea0| 00 00 00 cd 05 00 00 02 | 65 69 00 00 00 cd 05 00 |........|ei......|
|00000eb0| 00 02 65 69 00 00 00 cd | 05 00 00 02 65 69 00 00 |..ei....|....ei..|
|00000ec0| 00 cd 05 00 00 02 65 69 | 00 00 00 cd 05 00 00 02 |......ei|........|
|00000ed0| 65 69 00 00 00 cd 05 00 | 00 02 65 69 00 00 00 cd |ei......|..ei....|
|00000ee0| 05 00 00 02 65 69 00 00 | 00 cd 05 00 00 02 65 69 |....ei..|......ei|
|00000ef0| 00 00 00 cd 05 00 00 02 | 65 69 00 00 00 cd 05 00 |........|ei......|
|00000f00| 00 00 00 78 00 03 00 00 | 00 48 00 48 00 00 00 00 |...x....|.H.H....|
|00000f10| 02 da 02 28 ff e1 ff e1 | 02 f9 02 45 03 47 05 28 |...(....|...E.G.(|
|00000f20| 03 fc 00 02 00 00 00 48 | 00 48 00 00 00 00 02 d8 |.......H|.H......|
|00000f30| 02 28 00 01 00 00 00 64 | 00 00 00 01 00 03 03 03 |.(.....d|........|
|00000f40| 00 00 00 01 27 0f 00 01 | 00 01 00 00 00 00 00 00 |....'...|........|
|00000f50| 00 00 00 00 00 00 60 08 | 00 19 01 90 00 00 00 00 |......`.|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 16 |........|........|
|00000f80| 01 00 00 00 00 00 00 00 | 01 00 01 00 00 07 07 43 |........|.......C|
|00000f90| 6f 75 72 69 65 72 00 00 | 00 08 00 00 00 00 00 00 |ourier..|........|
|00000fa0| 00 00 00 00 00 0a 00 00 | 0a 1a ff ff 00 00 00 00 |........|........|
|00000fb0| 00 00 00 0a 00 00 0b 14 | ff ff 00 00 00 00 00 00 |........|........|
|00000fc0| 00 0a 00 00 0b 53 ff ff | 00 00 00 00 00 00 00 14 |.....S..|........|
|00000fd0| 00 00 09 16 ff ff 00 00 | 00 00 00 00 07 c2 ff ff |........|........|
|00000fe0| 00 00 00 00 00 00 00 0a | 00 00 09 7d ff ff 00 00 |........|...}....|
|00000ff0| 00 00 00 00 00 94 00 03 | 00 3e 00 00 00 00 00 00 |........|.>......|
|00001000| 00 9a 89 48 80 00 01 be | 04 18 02 51 06 7c 94 20 |...H....|...Q.|. |
|00001010| 00 00 00 00 00 00 1f 2a | 50 65 6f 70 6c 65 2e 56 |.......*|People.V|
|00001020| 69 73 69 74 73 2e 6d 54 | 68 69 73 4c 69 6e 6b 52 |isits.mT|hisLinkR|
|00001030| 65 6c 48 61 6c 66 00 2c | 00 00 00 00 00 00 00 9a |elHalf.,|........|
|00001040| 88 c8 80 00 ff ea 04 14 | 00 7d 06 78 94 20 00 00 |........|.}.x. ..|
|00001050| 00 00 00 00 0d 50 65 6f | 70 6c 65 2e 56 69 73 69 |.....Peo|ple.Visi|
|00001060| 74 73 00 28 00 00 00 00 | 00 00 00 9a 88 44 a0 00 |ts.(....|.....D..|
|00001070| 00 bf 04 1c 02 44 06 56 | 94 20 00 00 00 00 00 00 |.....D.V|. ......|
|00001080| 00 00 07 50 65 6f 70 6c | 65 20 00 00 00 0a 00 00 |...Peopl|e ......|
|00001090| 0e d7 ff ff 00 00 00 00 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|000010a0| 6e 61 63 6f 00 00 00 00 | 00 00 00 00 00 00 00 00 |naco....|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |........|........|
|000010c0| 00 04 00 56 00 7f 02 6c | 03 3b 00 56 00 7f 02 6c |...V...l|.;.V...l|
|000010d0| 03 3b af 69 41 e3 00 00 | 00 00 00 00 00 00 00 00 |.;.iA...|........|
|000010e0| 00 44 01 00 00 00 00 04 | 00 01 00 01 00 00 01 00 |.D......|........|
|000010f0| 00 00 02 ec 00 00 01 ec | 00 00 00 de 01 a3 eb 50 |........|.......P|
|00001100| 2a f8 00 00 00 1c 00 de | 00 05 4d 50 53 52 00 01 |*.......|..MPSR..|
|00001110| 00 32 46 50 52 46 00 00 | 00 4a 46 50 72 66 00 00 |.2FPRF..|.JFPrf..|
|00001120| 00 56 42 4b 50 54 00 05 | 00 62 44 54 56 55 00 00 |.VBKPT..|.bDTVU..|
|00001130| 00 aa 4d 57 42 42 00 00 | 00 b6 03 ee ff ff 00 00 |..MWBB..|........|
|00001140| 00 00 00 00 00 00 03 ed | ff ff 00 00 01 98 00 00 |........|........|
|00001150| 00 00 05 1a ff ff 00 00 | 00 7c 00 00 00 00 05 1a |........|.|......|
|00001160| ff ff 00 00 00 96 00 00 | 00 00 1e 7f ff ff 00 00 |........|........|
|00001170| 00 a2 00 00 00 00 2c 6b | ff ff 00 00 00 b0 00 00 |......,k|........|
|00001180| 00 00 6d e3 ff ff 00 00 | 00 be 00 00 00 00 16 c2 |..m.....|........|
|00001190| ff ff 00 00 00 cc 00 00 | 00 00 62 94 ff ff 00 00 |........|..b.....|
|000011a0| 00 e4 00 00 00 00 50 10 | ff ff 00 00 01 8a 00 00 |......P.|........|
|000011b0| 00 00 1f 6a ff ff 00 00 | 00 f2 00 00 00 00 03 f0 |...j....|........|
|000011c0| ff ff 00 00 01 e4 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+